package model;

public class Employee extends Person {

	public static class EmployeeBuilder extends PersonBuilder {

		private Department department;

		public EmployeeBuilder department(Department department) {
			this.department = department;
			return this;
		}

		public Employee build() {
			return new Employee(this);
		}

	}

	private Department department;

	public Employee(EmployeeBuilder builder) {
		super(builder);
		department = builder.department;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

}
